<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>AuBlog editor</title>
<link rel="stylesheet" type="text/css" href="markitup/images/style.css" />
<!-- jQuery -->
<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
<!-- markItUp! -->
<script type="text/javascript" src="markitup/markitup/jquery.markitup.js"></script>
<!-- markItUp! toolbar settings -->
<script type="text/javascript" src="markitup/markitup/sets/default/set.js"></script>
<!-- markItUp! skin -->
<link rel="stylesheet" type="text/css" href="markitup/markitup/skins/markitup/style.css" />
<!--  markItUp! toolbar skin -->
<link rel="stylesheet" type="text/css" href="markitup/markitup/sets/default/style.css" />



</head>
<body>
<script type="text/javascript">

</script>
<!-- <p>Click <a href="#" class="add">this link to insert content</a> from anywhere in the page or 
<a href="#" class="toggle">this one to <span>remove markItUp!</span></a></p>-->
<p>
<span id="buttonArea">
<input type="button"  id="deleteButton"  value="Delete" onClick="deletePost()" />
<input type="button"  id="saveButton"  value="Save" onClick="savePostToDB()" />
<input type="button"  id="publishButton"  value="Publish" onClick="publishPostToDB()" />
<input type="button"  id="recordButton" value="Record Dictation" onClick="startStopRecordingController()" />
</span>
<script type="text/javascript">

    function displayPlayButton(){
    	var playButtn = document.createElement("input");
    	playButtn.setAttribute("type","button");
    	playButtn.setAttribute("id","playButton");
    	playButtn.setAttribute("value","Play");
    	playButtn.setAttribute("onClick","playPauseAudioController()");
    	document.getElementById("buttonArea").appendChild(playButtn);
    }
    function playPauseAudioController(){
    	if(document.getElementById('playButton').value=="Pause"){
    		alert("hi");
    		//pause
    		//document.getElementById('playButton').value=Android.playOrPauseAudio();
    	}else{
    		alert("there");
    		//play
    		//document.getElementById('recordButton').value=Android.playOrPauseAudio();
    	}
    }
    displayPlayButton();
    		
    
</script>


</p>
</body>
</html>